﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Utility
{
    public enum eFailType
    {
        [Display(Name = "登录失败")]
        LoginFail = -1,
        [Display(Name = "服务错误")]
        ServerError = -2,
        [Display(Name = "命令错误")]
        CommandError = -3,
        [Display(Name = "参数错误")]
        ParamsError = -4,
        [Display(Name = "重新登录")]
        LoginAgain = -5,
        [Display(Name = "无权限")]
        NoRights = -6,
        [Display(Name = "已知错误")]
        Known = -88,
        [Display(Name = "未知错误")]
        UnKnown = -99
    }

    public enum eRightNo
    {
        [Display(Name = "系统设置")]
        SystemSetting = 1000,//	0000	系统设置    
        [Display(Name = "报警设置")]
        AlarmSetting = 1001,//	1000	报警设置    
        [Display(Name = "修改登录密码")]
        UpdatePwd = 1002,//	1000	修改登录密码         
        [Display(Name = "报警确认")]
        AlarmConfirm = 1003,//	1000	报警确认  

        [Display(Name = "后台管理")]
        BasicDatasSetting = 3000,//	1000	后台管理    
        [Display(Name = "角色添加")]
        RoleAdd = 3001,//	1000	后台管理  
        [Display(Name = "角色修改")]
        RoleUpdate = 3002,//	1000	后台管理  
        [Display(Name = "角色删除")]
        RoleDelete = 3003,//	1000	后台管理  

        [Display(Name = "操作员添加")]
        UserAdd = 3004,//	1000	后台管理  
        [Display(Name = "操作员修改")]
        UserUpdate = 3005,//	1000	后台管理  
        [Display(Name = "操作员删除")]
        UserDelete = 3006,//	1000	后台管理  

        [Display(Name = "公司添加")]
        CompanyAdd = 3007,//	1000	后台管理  
        [Display(Name = "公司修改")]
        CompanyUpdate = 3008,//	1000	后台管理  
        [Display(Name = "公司删除")]
        CompanyDelete = 3009,//	1000	后台管理  

        [Display(Name = "区域添加")]
        AreaAdd = 3010,//	1000	后台管理  
        [Display(Name = "区域修改")]
        AreaUpdate = 3011,//	1000	后台管理  
        [Display(Name = "区域删除")]
        AreaDelete = 3012,//	1000	后台管理  

        [Display(Name = "门站添加")]
        StationAdd = 3013,//	1000	后台管理  
        [Display(Name = "门站修改")]
        StationUpdate = 3014,//	1000	后台管理  
        [Display(Name = "门站删除")]
        StationDelete = 3015,//	1000	后台管理  

        [Display(Name = "用气单位添加")]
        CustomerAdd = 3016,//	1000	后台管理  
        [Display(Name = "用气单位修改")]
        CustomerUpdate = 3017,//	1000	后台管理  
        [Display(Name = "用气单位删除")]
        CustomerDelete = 3018,//	1000	后台管理  

        [Display(Name = "监测点添加")]
        MonpointAdd = 3019,//	1000	后台管理  
        [Display(Name = "监测点修改")]
        MonpointUpdate = 3020,//	1000	后台管理  
        [Display(Name = "监测点删除")]
        MonpointDelete = 3021,//	1000	后台管理  

        [Display(Name = "RTU添加")]
        RTUAdd = 3022,//	1000	后台管理  
        [Display(Name = "RTU修改")]
        RTUUpdate = 3023,//	1000	后台管理  
        [Display(Name = "RTU删除")]
        RTUDelete = 3024,//	1000	后台管理  

        [Display(Name = "流量计添加")]
        FLMeterAdd = 3025,//	1000	后台管理  
        [Display(Name = "流量计修改")]
        FLMeterUpdate = 3026,//	1000	后台管理  
        [Display(Name = "流量计删除")]
        FLMeterDelete = 3027,//	1000	后台管理  

        [Display(Name = "变送器添加")]
        TransMeterAdd = 3028,//	1000	后台管理  
        [Display(Name = "变送器修改")]
        TransMeterUpdate = 3029,//	1000	后台管理  
        [Display(Name = "变送器删除")]
        TransMeterDelete = 3030,//	1000	后台管理  

        [Display(Name = "数据展示添加")]
        DVCAdd = 3031,//	1000	后台管理  
        [Display(Name = "数据展示修改")]
        DVCUpdate = 3032,//	1000	后台管理  
        [Display(Name = "数据展示删除")]
        DVCDelete = 3033,//	1000	后台管理  
        [Display(Name = "报警指令下发")]
        AlarmCtrlSend = 3034,//	1000	后台管理  


        [Display(Name = "远程控制")]
        RemoteControl = 2000,//	0000	远程控制    
        [Display(Name = "开关阀")]
        OpenValve = 2001,//	2000	开关阀 
        [Display(Name = "远程充值")]
        RemoteRecharge = 2002,//	2000	远程充值    
        [Display(Name = "远程调价")]
        RemoteChangePrice = 2003,//	2000	远程调价    
        [Display(Name = "RTU参数设置")]
        RTUSetting = 2004,//	2000	RTU参数设置 
        [Display(Name = "数据共享")]
        DatasShare = 9000,//	0000	数据共享    
        [Display(Name = "数据共享读取数据")]
        ReadDatas = 9001,//	9000	读取数据    
        [Display(Name = "数据共享远程控制")]
        RemoteContorl = 9002//	9000	远程控制    
    }
    //public enum eFailType
    //{
    //    ServerError = -1,
    //    CommandError = -2,
    //    ParamsError = -3,
    //    UnKnown = -99,
    //    Known = -88
    //}
    public enum eDBHelperType
    {
        Sql,
        Oracle,
        Mysql,
        Sqllite,
        Access
    }

    public enum eWXPayType
    {
        App = 1,
        JSAPI = 2,
        NATIVE = 3
    }


    public enum eGHTradeType
    {
        ICCardCustomerSearch = 20011,//IC卡客户信息查询
        ICCardPrePay = 20021,//IC卡预充值
        ICCardConfimPay = 20031,//IC卡确认充值
        ICCardPayment = 20041,//IC卡缴费冲正
        ICCardHisPayRecord = 20051,//IC卡历史缴费记录查询
        ICCardBalanceAccount = 20099,//IC卡对账请求
        ICCardBackBalanceAccount//银行对账
    }
    public enum ePayMode
    {
        Tranfer = 5,//转账
        AliPay = 6,
        WXPay = 7,
        No = 99
    }
}
